<template>
  <div class="answers_users">

    <h4 style="padding: 7px 0" v-for="user in answersData.data">
      <span @click="queryUser(user.displayName,user.ygId)"> {{ user.displayName }} <span
        style="color: #9B9B9C">&#xA0;&#xA0;&#xA0;{{ user.orgShortName }}</span></span>
    </h4>

  </div>
</template>


<script>

import {setQueryUsers} from "../../../utils/setChatStoreData";

export default {
  name: 'AnswersQueryUsersList',
  props: ['answersData'],
  methods: {
    queryUser(username, ygid) {
      setQueryUsers(this, username, ygid);
    },
  }

}
</script>
